package com.funny.stock.data.collect;


import com.funny.stock.data.dao.entity.StockDayDataResult1DO;
import com.funny.stock.data.vo.StockDayData;
import com.funny.stock.data.vo.StockType;

import java.util.Date;
import java.util.List;

/**
 * @author pengl
 * @date 2020/05/03
 **/
public interface HistoryDataService {

    List<StockDayData> getDayData(String code, int year);

    List<StockDayData> getDataByRange(String code,Date startDate,Date endData);

    List<StockDayDataResult1DO> calcDataByRange(String code, Date startDate, Date endData);

    StockDayData getDayBeforeData(Date startDate);

    void loadStockDataList(StockType type);

}
